package com.hnqcgczy.gp.dao;

import com.hnqcgczy.gp.vo.TUser;

import java.sql.SQLException;

public interface IUserDao{
    //查昵称是否存在
    boolean getUserByName(String realname)throws SQLException;

    //新增（注册）
    boolean save(String name,String password)throws SQLException;

    //登录
    TUser login(String username, String passwodr, int role)throws SQLException;

}
